package com.iuie.ns.system.maker;

public abstract class AbstractBatchMaker<T> implements BatchMaker<T> {
	
	protected String text;
	
	protected String rule;
	
	public AbstractBatchMaker(String rule) {
		this.rule = rule;
	}
	
	@Override
	public BatchMaker<T> text(String text) {
		this.text = text;
		return this;
	}
	
	protected abstract T getObject();
	
	protected abstract void setObjectAttribute(T obj, String value, int index);
}
